export default{
    state:{
        num:0,
        phone:'13516332789',
        sexlist:['男','女']
    },
    mutations:{
        delClick(state){
            state.num++  
        },

        dell(state){
            state.num--  
        }
    },
    actions:{
        conClick(content){
            content.commit('delClick')
        },
        del(content){
            content.commit('dell');
            console.log();
        }
    },
    getters:{
        phoneShow:state=>{
            return state.phone.substring(0,3)+"****"+state.phone.substring(7,11)
        },
        sexShow:state=>{
            return sex=>{
                return state.sexlist[sex]
            }
        }
    }

}